package com.bw.seckill_module.api;

import com.bw.seckill_module.entity.GoodsEntity;
import com.bw.seckill_module.entity.SecKillEntity;
import com.bw.seckill_module.entity.SecKillListEntity;

import io.reactivex.Observable;
import okhttp3.RequestBody;
import retrofit2.http.Body;
import retrofit2.http.POST;

public interface ApiService {

    //获取秒杀列表
    @POST("secKill/seckilles")
    Observable<SecKillListEntity>requestSeckillList();
    //秒杀
    @POST("secKill/seckill")
    Observable<SecKillEntity>requestSeckill(@Body RequestBody body);

}
